package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * SpringMvc配置类
 */
@Configuration
@ComponentScan({"com.itheima.controller", "com.itheima.config"})    //控制层由SpringMvc控制
@EnableWebMvc   //开启Json转换
public class SpringMvcConfig {
}
